﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.mNC.Common
{
    public class GetScanNCType
    {
        public static string GetProcessType(string _QRCode)
        {
            string ProcessType = "";
            if (_QRCode.Contains("ZPL_L"))
                ProcessType = "左台批量";
            else if (_QRCode.Contains("ZPL_R"))
                ProcessType = "右台批量";
            else if (_QRCode.Contains("ZWS_L"))
                ProcessType = "左台余量";
            else if (_QRCode.Contains("ZWS_R"))
                ProcessType = "右台余量";
            else
                ProcessType = "";
            return ProcessType;
        }
        public static string GetProcessType_YL(string _QRCode)
        {
            string ProcessType = "";
            if (_QRCode.Contains("BPL_L"))
                ProcessType = "左台批量";
            else if (_QRCode.Contains("BPL_R"))
                ProcessType = "右台批量";
            else if (_QRCode.Contains("BWS_L"))
                ProcessType = "左台余量";
            else if (_QRCode.Contains("BWS_R"))
                ProcessType = "右台余量";
            else
                ProcessType = "";
            return ProcessType;
        }
    }
}
